# !/usr/bin/env python
# -- coding: utf-8 --
# @Author zengxiaohui
# Datatime:8/12/2021 1:41 PM
# @File:testssdf
import cv2
from PIL import Image, ImageOps
img_path = r'/home/zengxh/medias/data/ext/creepageDistance/lab_datasets/lr/org/6319938267001088_0_l..jpg'
img = cv2.imread(img_path)
cv2.imwrite("sdf.jpg",img)
img = Image.open(img_path)  # name of the file is his_equi.jpg
edited = ImageOps.autocontrast(img, cutoff=3)
edited.save("hiseqpil_1.jpg")


